#include <zmq.hpp>
#include <iostream>
#include <string>
#include "share.hpp"

int main(){
  zmq::context_t context(1);
  zmq::socket_t socket(context,ZMQ_REQ);
  std::cout<<"Connecting to hello world server..."<<std::endl;
  std::string server_host = "tcp://"+server_ip+":"+server_port;
  socket.connect(server_host);

  for (int request_nbr = 0; request_nbr!=n+10; request_nbr++){
    zmq::message_t request(size);
    //memcpy((void*)request.data(), "Hello", 5);
    //std::cout<<"Sending Hello " << request_nbr << "..." << std::endl;
    socket.send(request);

    zmq::message_t reply;
    socket.recv(&reply);
    //std::cout<<"Received: " << (char*) reply.data()<< std::endl;
  };
  return 0;
};
